<?php
// +----------------------------------------------------------------------
// | @filename Role.php
// +----------------------------------------------------------------------
// | @author 落花轻舞问君愁 <mwcx1990@qq.com>
// +----------------------------------------------------------------------
// | @datetime 2021-11-03 10:05:50
// +----------------------------------------------------------------------
// | @Description
// +----------------------------------------------------------------------

namespace Addons\Backend\Models;


class Role extends \Spatie\Permission\Models\Role
{
    public function menus(){
        return $this->belongsToMany(
            Menu::class,
            MenuHasRole::class,
            'role_id',
            'menu_id'
        );
    }
}
